home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 June
/
EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso
/
earcd
/
comm1
/
intsdkss.lha
/
password
/
password.doc
next >
Wrap
Text File
|
1996-04-09
|
2KB
|
85 lines
TABLE OF CONTENTS
password/make_password
password/pwd_algorithm_name
password/make_password password/make_password
NAME
make_password -- create an encrypted password
SYNOPSIS
ptr = make_password (buffer, password, username)
d0 a0 a1 a2
STRPTR make_password (STRPTR buffer, const STRPTR password,
const STRPTR username)
FUNCTION
This function takes a pointer to a buffer, and pointer to a user
password as typed at a prompt (plaintext), and the username for
the user this password belongs to. It will create an encrypted
password, placing it in the buffer provided.
The encrypted password is usually stored in a file, for later
comparison, for authentication purposes. For example, UNIX stores
the encrypted password in /etc/passwd along with other user info,
and I-Net 225 stores similar info in Inet:db/passwd.
INPUTS
buffer - pointer to a buffer of AT LEAST 32 bytes.
password - pointer to the user's unencrypted password.
username - pointer to the username.
RESULT
ptr - pointer to buffer on success, NULL on failure.
EXAMPLE
NOTES
The algorithm can be as simple or as complex as one wishes to
create. If it will be used with I-Net 225, however, the generated
password must NOT be greater then 31 characters in length (the
32nd byte is forced to NUL, since it is treated as a string and
written to a text file), and it must NOT contain any non-printable
or control characters, or the vertical bar ('|') character.
In most cases, this should properly be referred to as a HASH
function rather than an ENCRYPTION function, as it does a one-way
transformation of the data, and any method may be used.
BUGS
SEE ALSO
socket.library/s_crypt()
password/pwd_algorithm_name password/pwd_algorithm_name
NAME
pwd_algorithm_name -- return the name of the implemented algorithm
SYNOPSIS
name = pwd_algorithm_name ()
char *pwd_algorithm_name (void);
FUNCTION
This function is provided simply as a means to tell what hashing
or encrytion algorithm is used in the particular library. It
returns a pointer to a string, usually a constant inside the
.library file.
INPUTS
None
RESULT
name - a pointer to the algorithm name.
EXAMPLE
NOTES
BUGS
SEE ALSO